function getLastForPoints(points){
	let pps = points.split(" ")
	let last = pps[pps.length-1]
	let xy = last.split(",");
	return {x:xy[0],y:xy[1]};
}


function getFirstForPoints(points){
	let pps = points.split(" ")
	let last = pps[0]
	let xy = last.split(",");
	return {x:xy[0],y:xy[1]};
}